Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vm] upgrade move coverage tool #1679

Merged
merged 5 commits into from
Nov 20, 2020
Merged

[vm] upgrade move coverage tool #1679

merged 5 commits into from
Nov 20, 2020

Conversation

guangyuz
Copy link
Contributor

No description provided.

@guangyuz
Copy link
Contributor Author

Wrong address format (0x0x...) caused by starcoin change of fmt::Display for AccountAddress. The change is applied for specific sdk reason. Currently there is no plan to fix it so we have the work around above.

@guangyuz guangyuz requested a review from ssyuan November 19, 2020 11:48
pub fn output_map_to_file<M: Serialize, P: AsRef<Path>>(file_name: P, data: &M) -> Result<()> {
let bytes = scs::to_bytes(data)?;
let mut file = File::create(file_name)?;
file.write_all(&bytes)?;
Ok(())
}

pub fn preprocess_address(literal: &str) -> &str {
if literal.starts_with("0x0x") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是哪里序列化 address 的时候手动拼接了一个 0x?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确认了一下,这个是统一地址格式时有些地方没有完全覆盖到,已经在libra这边处理了。

@tiangong3624749 tiangong3624749 merged commit 141bffd into master Nov 20, 2020
@tiangong3624749 tiangong3624749 deleted the move_coverage branch November 20, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants